package cn.crm.entiy;

import java.util.ArrayList;
import java.util.List;

public class Customer {
    private Integer id;
    private String company;
    private String phone;
    private String manager;
    private List<Record> recordList;

    public Customer(String company, String phone, String manager) {
        this.createId();
        this.company = company;
        this.phone = phone;
        this.manager = manager;
        this.recordList = new ArrayList<>();
    }

    private void createId(){
        //10000-99999  10000   0-89999
        int id = (int)(Math.random()*90000+10000);
        this.id=id;

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    public List<Record> getRecordList() {
        return recordList;
    }

    public void setRecordList(List<Record> recordList) {
        this.recordList = recordList;
    }
}
